package com.owner.biz.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.owner.biz.UserBiz;
import com.owner.dao.UserDao;
import com.owner.entity.Plots;
import com.owner.entity.User;

@Service("userBiz")
@Scope("prototype")
public class UserBizImpl implements UserBiz {
	@Autowired
	private UserDao userDao;

	public User getByLogin(String nickname, String password) {
		// TODO Auto-generated method stub
		return userDao.getByLogin(nickname, password);
	}

	public void addUser(User user) {
		// TODO Auto-generated method stub
		userDao.addUser(user);
	}

	public void addPlots(Plots plots) {
		// TODO Auto-generated method stub
		userDao.addPlots(plots);
	}
	public int getCountUser() {
		// TODO Auto-generated method stub
		return userDao.getCountUser();
	}

	public int addZUser(User user) {
		// TODO Auto-generated method stub
		return userDao.addZUser(user);
	}

	public int updateZUser(User user) {
		// TODO Auto-generated method stub
		return userDao.updateZUser(user);
	}

	

	
}
